package com.lemontree.spring.service;

import com.lemontree.spring.aop.NeedTest;
import org.springframework.stereotype.Component;

@Component
public class NaviWaiter implements Waiter {

    public int greetTo(int age,String name){
        System.out.println(name +" is "+age+" age");
        return 11;
    }
    public void serveTo(String name) {
        System.out.println("need what? " + name);
    }

    @NeedTest
    public void greetTo(String name) {
        System.out.println("hello  " + name);
    }
}
